package cn.yj.netty.common;

/**
 * @author 永健
 * @since 2022-02-15 14:23
 */
public enum CommandCode {
    /**
     * 例子
     */
    HEART_BEAT("0000", "心跳"),
    TEST("0001", "测试"),
    UN_LOCK("1000", "解锁"),

    LOCK("1001", "上锁");
    private String code;

    private String msg;

    CommandCode(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
